<div id="content_container" class="product_container">
  <div class="tab_wapper">
    <div class="tab"><img src="/images/myfavorite_tab.gif" alt="我的收藏夹"></img>
    </div>
  </div>
  <ul class="hot_list" id="product_list">
    <% for product in @user.favors %>
      <li>
        <%= render :partial =>'/products/product_detail',:object=>product%>
        <div class="action_link">
          <a href="javascript:void(0);" onclick="addToCart(<%=product.id%>);" class='action_buy' >
            购买
          </a>
          <a href="/products/remove_favorite/<%=product.id%>" class="action_favorite_delete" >
            移除
          </a>
        </div>
      </li>
    <%  end %>
  </ul>
</div>